package com.hwtx.form;

import jakarta.annotation.Resource;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;

public class OrderService {
    @Resource
    private ApplicationContext applicationContext;
    @Autowired
    private OtherService otherService;
    @Setter
    private String name;

    public void invoke() {
        System.out.println("OrderService invoke");
        System.out.println("name = " + name);
        System.out.println("applicationContext = " + applicationContext.toString());
        otherService.invoke();

    }
}
